package com.hzf.booklibrary.bean;

import com.hzf.booklibrary.bean.base.Base;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2017/4/12.
 */

public class BookClassify extends Base {

    public List<Classify> result;

    public static class Classify implements Serializable {
        /**
         * 分类id
         */
        public int id;
        /**
         * 分类名称
         */
        public String name;

        @Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (!(o instanceof Classify)) return false;
            Classify classify = (Classify) o;
            if (id != classify.id) return false;
            return name != null ? name.equals(classify.name) : classify.name == null;
        }

        @Override
        public int hashCode() {
            int result = id;
            result = 31 * result + (name != null ? name.hashCode() : 0);
            return result;
        }
    }
}
